package com.gang.ssm.bos.system.mapper;


import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.gang.ssm.bos.system.bean.Region;
import com.gang.ssm.bos.system.bean.RegionExample;

public interface RegionMapper {
    long countByExample(RegionExample example);

    int deleteByExample(RegionExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Region record);

    int insertSelective(Region record);

    List<Region> selectByExample(RegionExample example);

    Region selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Region record, @Param("example") RegionExample example);

    int updateByExample(@Param("record") Region record, @Param("example") RegionExample example);

    int updateByPrimaryKeySelective(Region record);

    int updateByPrimaryKey(Region record);

	public List<Region> findByLimit(@Param("pageNo")int pageNo, @Param("pageSize")int pageSize);

	public void bathInstert(@Param("regions")List<Region> regions);

	public void bathUpdate(@Param("regions2")List<Region> regions2);

	void batchInsert(@Param("regions")List<Region> regions);
}